package com.hbnu.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hbnu.system.model.entity.Patent;
import com.hbnu.system.model.entity.User;
import com.hbnu.system.model.query.PatentPageQuery;
import com.hbnu.system.model.vo.PatentVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2023-05-16
 */
public interface PatentMapper extends BaseMapper<Patent> {

    // 校级审核员查询：指定参数名为page、patentPageQuery、user
    IPage<PatentVO> schoolGetRelatePatentQuery(
            @Param("page") Page<PatentVO> page,
            @Param("patentPageQuery") PatentPageQuery query,
            @Param("user") User user
    );

    // 院级审核员查询：指定参数名为page、patentPageQuery、dept
    IPage<PatentVO> collegeGetRelatePatentQuery(
            @Param("page") Page<PatentVO> page,
            @Param("patentPageQuery") PatentPageQuery query,
            @Param("user") User user
    );

    IPage<PatentVO> userGetRelatePatentQuery(
            @Param("page") Page<PatentVO> page,
            @Param("patentPageQuery") PatentPageQuery query,
            @Param("user") User user
    );

    IPage<Patent> schoolExportRelatePatentQuery(
            @Param("page") Page<Patent> page,
            @Param("patentPageQuery") PatentPageQuery patentPageQuery,
            @Param("user") User user
    );

    IPage<Patent> collegeExportRelatePatentQuery(
            @Param("page") Page<Patent> page,
            @Param("patentPageQuery") PatentPageQuery patentPageQuery,
            @Param("user") User user
    );

    IPage<Patent> userExportRelatePatentQuery(
            @Param("page") Page<Patent> page,
            @Param("patentPageQuery") PatentPageQuery patentPageQuery,
            @Param("user") User user
    );


}
